/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 涛
 * Date: 2023-08-02
 * Time: 9:20
 */
class Base {
    public int a = 99;
    public void Metho() {
        System.out.println("Base.Metho");
    }
}
//class Derived extends Base{
//    public int a = 199;
//    public void Metho() {
//        System.out.println("Derived.Metho");
//    }
//    public void Test() {
//        super.Metho();
//        System.out.println(super.a);
//    }
//}
//
//public class Test {
//    public static void main(String[] args) {
//        Derived derived = new Derived();
//        derived.Test();
//    }
//}

//class Animal {
//    int age;
//    String name;
//
//    public Animal(int age,String name) {
//        this.age = age;
//        this.name = name;
//    }
//}
//
//class Dog extends Animal {
//    public Dog() {
//        super(19,"汪汪");
//    }
//    public void bark() {
//        System.out.println("正在汪汪汪");
//    }
//
//}